package cn.shop.cloud.feign;

import cn.shop.cloud.common.Result;
import cn.shop.cloud.domain.Good;
import cn.shop.cloud.hystrix.GoodFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @program: shop-parent
 * @ClassName GoodFeignApi
 * @description:
 * @author: Mokio
 * @create: 2024−12-24 20:27
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/
@FeignClient(name = "good-server",fallback = GoodFeignHystrix.class )
public interface GoodFeignApi {

    @RequestMapping("/queryByIds")
    public Result<List<Good>> queryByIds(@RequestParam("ids") List<Long> ids);

}
